<?php 
	@session_start();
	include_once('classes/admin_login.php');
	if(AdminLogIn::IsAdmin()) /* zalogowany admin */ { 
		$_SESSION['page'] = 'index';
		include_once('classes/admin_panel.php');
		AdminPanel::RunPanel();
	}
	elseif(AdminLogIn::IsLoggedIn()) /* zalogowany, ale nie admin */ {
		$_SESSION['page'] = 'index';
		include_once('classes/admin_panel.php');
		AdminPanel::RunPanelNoRights();
	}
	else /* niezalogowany */ {
		AdminLogIn::LogInForm();
	}
?>